import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    collapsed: false,
    title: '',
    imgStatus: true,
    status: true,
  },
  mutations: {
    saveCollapsed(state, collapsed) {
      state.collapsed = collapsed
    },
    savetitle(state, title) {
      state.title = title
    },
    saveImgStatus(state, imgStatus) {
      state.imgStatus = imgStatus
  },
  saveStatus(state, status) {
    state.status = status
},
  },
  actions: {},
})
